package com.cqeec.demo2.demos.demo;

//多线程的实现
//extend  Thread
//implements Runnable
public class MyThread extends Thread {
    @Override
    public void run() {
        for (int i = 0; i < 5; i++) {
            System.out.println(Thread.currentThread().getName()+" "+i);
        }
    }
}
